<?php
/**
 * Created by PhpStorm.
 * Author:王晓云
 * Date: 2017/12/23 0023
 * Time: 9:16
 */

namespace app\admin\model;

use think\Model;

class Article extends Model
{
  protected $autoWriteTimestamp="datetime";
  public function ArticleCat(){
      return $this->hasMany('article_cat',"pid","id");
  }
}